package com.erik.lin.orm.po;

import java.util.ArrayList;
import java.util.List;

public class DacpDataexCryptExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DacpDataexCryptExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCryptIdIsNull() {
            addCriterion("crypt_id is null");
            return (Criteria) this;
        }

        public Criteria andCryptIdIsNotNull() {
            addCriterion("crypt_id is not null");
            return (Criteria) this;
        }

        public Criteria andCryptIdEqualTo(String value) {
            addCriterion("crypt_id =", value, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdNotEqualTo(String value) {
            addCriterion("crypt_id <>", value, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdGreaterThan(String value) {
            addCriterion("crypt_id >", value, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdGreaterThanOrEqualTo(String value) {
            addCriterion("crypt_id >=", value, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdLessThan(String value) {
            addCriterion("crypt_id <", value, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdLessThanOrEqualTo(String value) {
            addCriterion("crypt_id <=", value, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdLike(String value) {
            addCriterion("crypt_id like", value, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdNotLike(String value) {
            addCriterion("crypt_id not like", value, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdIn(List<String> values) {
            addCriterion("crypt_id in", values, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdNotIn(List<String> values) {
            addCriterion("crypt_id not in", values, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdBetween(String value1, String value2) {
            addCriterion("crypt_id between", value1, value2, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptIdNotBetween(String value1, String value2) {
            addCriterion("crypt_id not between", value1, value2, "cryptId");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameIsNull() {
            addCriterion("crypt_class_name is null");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameIsNotNull() {
            addCriterion("crypt_class_name is not null");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameEqualTo(String value) {
            addCriterion("crypt_class_name =", value, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameNotEqualTo(String value) {
            addCriterion("crypt_class_name <>", value, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameGreaterThan(String value) {
            addCriterion("crypt_class_name >", value, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameGreaterThanOrEqualTo(String value) {
            addCriterion("crypt_class_name >=", value, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameLessThan(String value) {
            addCriterion("crypt_class_name <", value, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameLessThanOrEqualTo(String value) {
            addCriterion("crypt_class_name <=", value, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameLike(String value) {
            addCriterion("crypt_class_name like", value, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameNotLike(String value) {
            addCriterion("crypt_class_name not like", value, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameIn(List<String> values) {
            addCriterion("crypt_class_name in", values, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameNotIn(List<String> values) {
            addCriterion("crypt_class_name not in", values, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameBetween(String value1, String value2) {
            addCriterion("crypt_class_name between", value1, value2, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptClassNameNotBetween(String value1, String value2) {
            addCriterion("crypt_class_name not between", value1, value2, "cryptClassName");
            return (Criteria) this;
        }

        public Criteria andCryptDescrIsNull() {
            addCriterion("crypt_descr is null");
            return (Criteria) this;
        }

        public Criteria andCryptDescrIsNotNull() {
            addCriterion("crypt_descr is not null");
            return (Criteria) this;
        }

        public Criteria andCryptDescrEqualTo(String value) {
            addCriterion("crypt_descr =", value, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrNotEqualTo(String value) {
            addCriterion("crypt_descr <>", value, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrGreaterThan(String value) {
            addCriterion("crypt_descr >", value, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrGreaterThanOrEqualTo(String value) {
            addCriterion("crypt_descr >=", value, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrLessThan(String value) {
            addCriterion("crypt_descr <", value, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrLessThanOrEqualTo(String value) {
            addCriterion("crypt_descr <=", value, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrLike(String value) {
            addCriterion("crypt_descr like", value, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrNotLike(String value) {
            addCriterion("crypt_descr not like", value, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrIn(List<String> values) {
            addCriterion("crypt_descr in", values, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrNotIn(List<String> values) {
            addCriterion("crypt_descr not in", values, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrBetween(String value1, String value2) {
            addCriterion("crypt_descr between", value1, value2, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptDescrNotBetween(String value1, String value2) {
            addCriterion("crypt_descr not between", value1, value2, "cryptDescr");
            return (Criteria) this;
        }

        public Criteria andCryptNameIsNull() {
            addCriterion("crypt_name is null");
            return (Criteria) this;
        }

        public Criteria andCryptNameIsNotNull() {
            addCriterion("crypt_name is not null");
            return (Criteria) this;
        }

        public Criteria andCryptNameEqualTo(String value) {
            addCriterion("crypt_name =", value, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameNotEqualTo(String value) {
            addCriterion("crypt_name <>", value, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameGreaterThan(String value) {
            addCriterion("crypt_name >", value, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameGreaterThanOrEqualTo(String value) {
            addCriterion("crypt_name >=", value, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameLessThan(String value) {
            addCriterion("crypt_name <", value, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameLessThanOrEqualTo(String value) {
            addCriterion("crypt_name <=", value, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameLike(String value) {
            addCriterion("crypt_name like", value, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameNotLike(String value) {
            addCriterion("crypt_name not like", value, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameIn(List<String> values) {
            addCriterion("crypt_name in", values, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameNotIn(List<String> values) {
            addCriterion("crypt_name not in", values, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameBetween(String value1, String value2) {
            addCriterion("crypt_name between", value1, value2, "cryptName");
            return (Criteria) this;
        }

        public Criteria andCryptNameNotBetween(String value1, String value2) {
            addCriterion("crypt_name not between", value1, value2, "cryptName");
            return (Criteria) this;
        }

        public Criteria andPublicKeyIsNull() {
            addCriterion("public_key is null");
            return (Criteria) this;
        }

        public Criteria andPublicKeyIsNotNull() {
            addCriterion("public_key is not null");
            return (Criteria) this;
        }

        public Criteria andPublicKeyEqualTo(String value) {
            addCriterion("public_key =", value, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyNotEqualTo(String value) {
            addCriterion("public_key <>", value, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyGreaterThan(String value) {
            addCriterion("public_key >", value, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyGreaterThanOrEqualTo(String value) {
            addCriterion("public_key >=", value, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyLessThan(String value) {
            addCriterion("public_key <", value, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyLessThanOrEqualTo(String value) {
            addCriterion("public_key <=", value, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyLike(String value) {
            addCriterion("public_key like", value, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyNotLike(String value) {
            addCriterion("public_key not like", value, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyIn(List<String> values) {
            addCriterion("public_key in", values, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyNotIn(List<String> values) {
            addCriterion("public_key not in", values, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyBetween(String value1, String value2) {
            addCriterion("public_key between", value1, value2, "publicKey");
            return (Criteria) this;
        }

        public Criteria andPublicKeyNotBetween(String value1, String value2) {
            addCriterion("public_key not between", value1, value2, "publicKey");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}